Feat: Enhance Product Data Handling in DecoCX Schema.org Transformation #996
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
General Information
Discord Discussion
Environment
https://admin.deco.cx/sites/oficina-reserva/spaces/dashboard?env=fix%2Fsku-specs
Loaders Modified
Problem
In the process of transforming DecoCX product data into the schema.org format, some important product attributes are being lost. These attributes might be necessary for specific use cases in the storefront, leading to limitations in the available data.
Proposed Solution
To address this issue, we propose adding an "Advanced Config" property to some loaders. This property would include an attribute named
originalAttributesToInclude
, which would be an array of strings representing the key names of the original attributes to retain.These specified attributes would then be added to the
additionalProperties
field of theisVariantOf
object, ensuring that the required data is preserved and accessible in the frontend.Additional Context
string[]
may be too broad.Acceptance Criteria
originalAttributesToInclude
array allows for retaining specific attributes during the schema transformation.additionalProperties
field in theisVariantOf
object.Impact
This change would streamline the process of retaining essential product attributes, reduce the need for repetitive development efforts, and ensure more robust and adaptable storefront implementations.